/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-6-26 上午11:39 Created by piaohh
 */
package com.xunton.bss.weixin.api.message.event;

import java.util.Date;

import com.jade.framework.base.criterion.Criteria;
import com.jade.framework.base.util.PagingList;
import com.xunton.bss.weixin.api.message.event.coupon.CouponEvent;

/**
 *
 * @author <a href="mailto:Administrator@ceno.cn">piaohh</a>
 * @version 1.0 15-6-26 上午11:39
 */
public interface CouponEventManager
{
    public PagingList<CouponEvent> query(Criteria criteria);

    /**
     * 统计卡券事件类型数量
     * @param id
     * @param type
     * @param beginDate
     * @param endDate
     * @return
     */
    public long statCouponCount(long id,String type,Date beginDate,Date endDate);
}
